/*
 * @Descripttion: 
 * @version: 
 * @Author: cyj
 * @Date: 2023-01-03 16:55:57
 */
import request from "../../utils/request";

//获取用户详情
export const getUserDetail = (uid) => request({
    url: '/user/detail',
    params: {
        uid,
        timestamp: Date.parse(new Date())
    }
})

//获取用户歌单
export const getUserSonglist = (uid) => request({
    url: '/user/playlist',
    params: {
        uid,
        timestamp: Date.parse(new Date())
    }
})

//获取用户喜欢音乐列表   需要用户登录
export const getUserSongLikeList = (uid, cookie) => request({
    url: `/likelist?timerstamp=${Date.now()}`,
    method: 'post',
    data: {
        uid,
        cookie
    }
})